< prev index next >

buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/MemberInfo.java

Print this page




  68         SETTER,
  69         /**
  70          * This is a property
  71          */
  72         PROPERTY,
  73         /**
  74          * This is a specialized version of a function
  75          */
  76         SPECIALIZED_FUNCTION,
  77     }
  78 
  79     // keep in sync with jdk.nashorn.internal.objects.annotations.Attribute
  80     static final int DEFAULT_ATTRIBUTES = 0x0;
  81 
  82     static final int DEFAULT_ARITY = -2;
  83 
  84     // the kind of the script annotation - one of the above constants
  85     private MemberInfo.Kind kind;
  86     // script property name
  87     private String name;


  88     // script property attributes
  89     private int attributes;
  90     // name of the java member
  91     private String javaName;
  92     // type descriptor of the java member
  93     private String javaDesc;
  94     // access bits of the Java field or method
  95     private int javaAccess;
  96     // initial value for static @Property fields
  97     private Object value;
  98     // class whose object is created to fill property value
  99     private String initClass;
 100     // arity of the Function or Constructor
 101     private int arity;
 102 
 103     private Where where;
 104 
 105     private Type linkLogicClass;
 106 
 107     private boolean isSpecializedConstructor;


 117 
 118     /**
 119      * @param kind the kind to set
 120      */
 121     public void setKind(final Kind kind) {
 122         this.kind = kind;
 123     }
 124 
 125     /**
 126      * @return the name
 127      */
 128     public String getName() {
 129         return name;
 130     }
 131 
 132     /**
 133      * @param name the name to set
 134      */
 135     public void setName(final String name) {
 136         this.name = name;














 137     }
 138 
 139     /**
 140      * Tag something as specialized constructor or not
 141      * @param isSpecializedConstructor boolean, true if specialized constructor
 142      */
 143     public void setIsSpecializedConstructor(final boolean isSpecializedConstructor) {
 144         this.isSpecializedConstructor = isSpecializedConstructor;
 145     }
 146 
 147     /**
 148      * Check if something is a specialized constructor
 149      * @return true if specialized constructor
 150      */
 151     public boolean isSpecializedConstructor() {
 152         return isSpecializedConstructor;
 153     }
 154 
 155     /**
 156      * Check if this is an optimistic builtin function




  68         SETTER,
  69         /**
  70          * This is a property
  71          */
  72         PROPERTY,
  73         /**
  74          * This is a specialized version of a function
  75          */
  76         SPECIALIZED_FUNCTION,
  77     }
  78 
  79     // keep in sync with jdk.nashorn.internal.objects.annotations.Attribute
  80     static final int DEFAULT_ATTRIBUTES = 0x0;
  81 
  82     static final int DEFAULT_ARITY = -2;
  83 
  84     // the kind of the script annotation - one of the above constants
  85     private MemberInfo.Kind kind;
  86     // script property name
  87     private String name;
  88     // documentation for this member
  89     private String documentation;
  90     // script property attributes
  91     private int attributes;
  92     // name of the java member
  93     private String javaName;
  94     // type descriptor of the java member
  95     private String javaDesc;
  96     // access bits of the Java field or method
  97     private int javaAccess;
  98     // initial value for static @Property fields
  99     private Object value;
 100     // class whose object is created to fill property value
 101     private String initClass;
 102     // arity of the Function or Constructor
 103     private int arity;
 104 
 105     private Where where;
 106 
 107     private Type linkLogicClass;
 108 
 109     private boolean isSpecializedConstructor;


 119 
 120     /**
 121      * @param kind the kind to set
 122      */
 123     public void setKind(final Kind kind) {
 124         this.kind = kind;
 125     }
 126 
 127     /**
 128      * @return the name
 129      */
 130     public String getName() {
 131         return name;
 132     }
 133 
 134     /**
 135      * @param name the name to set
 136      */
 137     public void setName(final String name) {
 138         this.name = name;
 139     }
 140 
 141     /**
 142      * @return the documentation
 143      */
 144     public String getDocumentation() {
 145         return documentation;
 146     }
 147 
 148     /**
 149      * @param doc the documentation to set
 150      */
 151     public void setDocumentation(final String doc) {
 152         this.documentation = doc;
 153     }
 154 
 155     /**
 156      * Tag something as specialized constructor or not
 157      * @param isSpecializedConstructor boolean, true if specialized constructor
 158      */
 159     public void setIsSpecializedConstructor(final boolean isSpecializedConstructor) {
 160         this.isSpecializedConstructor = isSpecializedConstructor;
 161     }
 162 
 163     /**
 164      * Check if something is a specialized constructor
 165      * @return true if specialized constructor
 166      */
 167     public boolean isSpecializedConstructor() {
 168         return isSpecializedConstructor;
 169     }
 170 
 171     /**
 172      * Check if this is an optimistic builtin function


< prev index next >