methodtag.java

来自「First of all, the Applet-phone is a SIP 」· Java 代码 · 共 188 行

JAVA
188
字号
/* * MethodTag.java * * Created on June 13, 2003, 11:28 AM */package gov.nist.security.permissions.parser;import java.util.*;/** * Class representing a method tag in a xml permissions file * @author  DERUELLE Jean */public class MethodTag {    /**the name of the belonging permission Name*/    private String permissionName=null;    /** the name of the belonging permission Action*/    private String permissionAction=null;    /**the name of the method belonging class */    private String className=null;    /**the name of the method to check*/    private String methodName=null;    /**the name of the method to check*/    private String returnType=null;     /**the arguments list */    private Vector arguments=null;    /**if we have to check the value of the arguments of the method     it means if we have to check the permission at runtime or before runtime*/    private boolean checkValue=false;    /**the bytecode tag associated to this method Tag*/    private ByteCodeTag byteCodeTag=null;        /** Creates a new instance of MethodTag */    public MethodTag() {    }        /** Creates a new instance of MethodTag     * @param permissionName - the name of the belonging permission Name     * @param permissionAction - the name of the belonging permission Action     * @param className - the name of the method belonging class     * @param methodName - the name of the method to check     * @param returnType - the return type name of the method     * @param arguments - the arguments list     */    public MethodTag(String permissionName,                     String permissionAction,                     String className,                      String methodName,                      String returnType,                     Vector arguments) {                                 this.permissionName=permissionName;        this.permissionAction=permissionAction;        this.className=className;        this.methodName=methodName;        this.returnType=returnType;            this.arguments=arguments;            }    /**     * get the name of the belonging permission Name     * @return Permission name     */    public String getPermissionName(){        return permissionName;    }        /**     * set the name of the belonging permissionName     * @param permissionName - permission Name     */    public void setPermissionName(String permissionName){        this.permissionName=permissionName;    }        /**     * get the name of the belonging permission Action     * @return permission Action      */    public String getPermissionAction(){        return permissionAction;    }        /**     * set the name of the belonging permissionAction     * @param permissionAction - permission Action     */    public void setPermissionAction(String permissionAction){        this.permissionAction=permissionAction;    }        /**     * get return type name of the method      * @return return type name     */    public String getReturnType(){        return returnType;    }        /**     * set return type name of the method      * @param returnType - return type name     */    public void setReturnType(String returnType){        this.returnType=returnType;    }            /**     * get the arguments list      * @return the arguments list     */    public Vector getArguments(){        return arguments;    }        /**     * set the arguments list      * @param arguments - the arguments list      */    public void setArguments(Vector arguments){        this.arguments=arguments;    }        /**     * get name of the method to check     * @return method name     */    public String getMethodName(){        return methodName;    }        /**     * set name of the method to check     * @param methodName - method name     */    public void setMethodName(String methodName){        this.methodName=methodName;    }        /**     * get the name of the method belonging class      * @return class name     */    public String getClassName(){        return className;    }        /**     * set the name of the method belonging class      * @param className - class name     */    public void setClassName(String className){        this.className=className;    }        /**     * return if we have to check the value of the arguments of the method     * @return true if we have to check the value of the arguments of the method     */    public boolean getCheckValue(){        return checkValue;    }        /**     * set if we have to check the value of the arguments of the method     * @param checkValue - the value     */    public void setCheckValue(boolean checkValue){        this.checkValue=checkValue;    }        /**     * return the byte code tag for the method, it specifies the method to call on a class     * @return the bytecodeTag     */    public ByteCodeTag getByteCodeTag(){        return byteCodeTag;    }        /**     * set the byte code tag for the method, it specifies the method to call on a class     * @param byteCodeTag - the bytecodeTag     */    public void setByteCodeTag(ByteCodeTag byteCodeTag){        this.byteCodeTag=byteCodeTag;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?