Package jadex.classreader
Class SClassReader.FieldInfo
java.lang.Object
jadex.classreader.SClassReader.AnnotatedEntity
jadex.classreader.SClassReader.ClassEntity
jadex.classreader.SClassReader.FieldInfo
- Enclosing class:
SClassReader
Info object describing a field.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The field descriptor.protected String
The field name.protected String
The field signature (cached).Fields inherited from class jadex.classreader.SClassReader.AnnotatedEntity
accessflags, annotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the field descriptor.Get the field name.Returns a String representation of the field signature.boolean
isEnum()
Tests if field is an enum.boolean
Tests if field is transient.boolean
Tests if field is volatile.protected void
setFieldDescriptor
(String fielddesc) Set the field descriptor.protected void
setFieldName
(String fieldname) Set the field name.Methods inherited from class jadex.classreader.SClassReader.ClassEntity
isPrivate, isProtected, isStatic
Methods inherited from class jadex.classreader.SClassReader.AnnotatedEntity
getAccessFlags, getAnnotation, getAnnotations, hasAnnotation, isFinal, isPublic, isSynthetic, setAccessFlags, setAnnotations
-
Field Details
-
fieldname
The field name. -
fielddesc
The field descriptor. -
signature
The field signature (cached).
-
-
Constructor Details
-
FieldInfo
protected FieldInfo()
-
-
Method Details
-
getFieldName
Get the field name.- Returns:
- the field name.
-
getFieldDescriptor
Get the field descriptor.- Returns:
- the field descriptor.
-
getFieldSignature
Returns a String representation of the field signature.- Returns:
- Method signature.
-
isVolatile
public boolean isVolatile()Tests if field is volatile.- Returns:
- True, if volatile.
-
isTransient
public boolean isTransient()Tests if field is transient.- Returns:
- True, if transient.
-
isEnum
public boolean isEnum()Tests if field is an enum.- Returns:
- True, if an enum.
-
setFieldName
Set the field name.- Parameters:
fieldname
- the field name to set
-
setFieldDescriptor
Set the field descriptor.- Parameters:
fielddesc
- the field descriptor to set
-