Package eu.bandm.tools.lljava.absy
Class LLJava.Class
java.lang.Object
eu.bandm.tools.lljava.absy.LLJava.Node
eu.bandm.tools.lljava.absy.LLJava.Modifiable
eu.bandm.tools.lljava.absy.LLJava.Attributable
eu.bandm.tools.lljava.absy.LLJava.Class
- All Implemented Interfaces:
Formattable
,Cloneable
- Enclosing class:
- LLJava
Definition of a class. This is the largest unit of
LLJava models.
- See Also:
-
- ยง4.1
Reflects the data from the "ClassFile structure", as defined in [JVM] Section 4.1. Please note that the concrete organization differs for ergonomic/semantic reasons: e.g. the "detour" through the constant pool for the field "interfaces" is only in JVM; LLJava simply has references to ClassReference objects. Contrarily, the "field_info structure" is stored inlined in JVM, but by references to Field objects in LLJava.
- ยง4.1
-
Field Summary
Modifier and TypeFieldDescriptionprotected CheckedList<LLJava.Field>
Generated by umod; model author's documentation MISSING.protected CheckedList<LLJava.InnerClass>
Generated by umod; model author's documentation MISSING.protected LLJava.Id
Generated by umod; model author's documentation MISSING.protected CheckedList<LLJava.ClassReference>
Generated by umod; model author's documentation MISSING.protected CheckedList<LLJava.Method>
Generated by umod; model author's documentation MISSING.protected LLJava.QualId
Generated by umod; model author's documentation MISSING.protected CheckedList<LLJava.ConstantPoolEntry>
Generated by umod; model author's documentation MISSING.protected LLJava.ConstantUTF8
Generated by umod; model author's documentation MISSING.protected LLJava.ClassReference
Generated by umod; model author's documentation MISSING.protected LLJava.ClassRef
Generated by umod; model author's documentation MISSING.protected CheckedList<LLJava.TypeParameter>
Generated by umod; model author's documentation MISSING.Fields inherited from class eu.bandm.tools.lljava.absy.LLJava.Attributable
attrs
Fields inherited from class eu.bandm.tools.lljava.absy.LLJava.Modifiable
annotations, modifiers
Fields inherited from class eu.bandm.tools.lljava.absy.LLJava.Node
location
-
Constructor Summary
ConstructorDescriptionClass
(LLJava.QualId name, LLJava.ClassReference superClass) Constructor generated according to specification #0
Constructor defined according to directive "C 0/..". -
Method Summary
Modifier and TypeMethodDescriptionvoid
descend_fields
(LLJava.MATCH_ONLY_00 visitor) Deprecated.void
descend_innerClasses
(LLJava.MATCH_ONLY_00 visitor) Deprecated.void
descend_interfaces
(LLJava.MATCH_ONLY_00 visitor) Deprecated.void
descend_methods
(LLJava.MATCH_ONLY_00 visitor) Deprecated.void
descend_pool
(LLJava.MATCH_ONLY_00 visitor) Deprecated.void
Deprecated.doclone()
Clones this object.format()
Delivers a format object for pretty-printing, as specified in the umod source.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_fields
(Pattern<? super CheckedList<LLJava.Field>> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_innerClasses
(Pattern<? super CheckedList<LLJava.InnerClass>> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_innerName
(Pattern<? super LLJava.Id> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_interfaces
(Pattern<? super CheckedList<LLJava.ClassReference>> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_methods
(Pattern<? super CheckedList<LLJava.Method>> p) Lifts a pattern which matches the field value to one which matches this whole object.get_name()
Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_name
(Pattern<? super LLJava.QualId> p) Lifts a pattern which matches the field value to one which matches this whole object.get_pool()
Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_pool
(Pattern<? super CheckedList<LLJava.ConstantPoolEntry>> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_signatureEntry
(Pattern<? super LLJava.ConstantUTF8> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_superClass
(Pattern<? super LLJava.ClassReference> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_thisEntry
(Pattern<? super LLJava.ClassRef> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Class>
get_typeParameters
(Pattern<? super CheckedList<LLJava.TypeParameter>> p) Lifts a pattern which matches the field value to one which matches this whole object.static String
Delivers the format specification from the umod source.Copies values of all common fields from the argument.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
set_innerName
(LLJava.Id val) Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
set_name
(LLJava.QualId val) Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.Methods inherited from class eu.bandm.tools.lljava.absy.LLJava.Attributable
descend_attrs, get_attrs, get_attrs, set_attrs
Methods inherited from class eu.bandm.tools.lljava.absy.LLJava.Modifiable
descend_annotations, descend_modifiers, get_annotations, get_annotations, get_modifiers, get_modifiers, set_annotations, set_modifiers
Methods inherited from class eu.bandm.tools.lljava.absy.LLJava.Node
get_location, get_location, set_location
-
Field Details
-
name
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":154.9-79, see this pretty print.)
The type of this field isLLJava.QualId
(never null)
It is set by every possible constructor. -
innerName
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":155.9-28, see this pretty print.)
The type of this field isLLJava.Id
(maybe null)
Its value defaults to null. -
typeParameters
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":156.9-79, see this pretty print.)
The type of this field isCheckedList
<LLJava.TypeParameter
(never null)>(never null)
Its value defaults to an empty collection. -
superClass
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":157.9-79, see this pretty print.)
The type of this field isLLJava.ClassReference
(never null)
It is set by every possible constructor. -
interfaces
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":158.9-79, see this pretty print.)
The type of this field isCheckedList
<LLJava.ClassReference
(never null)>(never null)
Its value defaults to an empty collection. -
fields
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":159.9-79, see this pretty print.)
The type of this field isCheckedList
<LLJava.Field
(never null)>(never null)
Its value defaults to an empty collection. -
methods
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":160.9-79, see this pretty print.)
The type of this field isCheckedList
<LLJava.Method
(never null)>(never null)
Its value defaults to an empty collection. -
innerClasses
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":161.9-28, see this pretty print.)
The type of this field isCheckedList
<LLJava.InnerClass
(never null)>(never null)
Its value defaults to an empty collection. -
pool
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1016.9-73, see this pretty print.)
The type of this field isCheckedList
<LLJava.ConstantPoolEntry
(never null)>(never null)
Its value defaults to an empty collection. -
thisEntry
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1017.9-73, see this pretty print.)
The type of this field isLLJava.ClassRef
(maybe null)
Its value defaults to null. -
signatureEntry
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1018.9-73, see this pretty print.)
The type of this field isLLJava.ConstantUTF8
(maybe null)
Its value defaults to null.
-
-
Constructor Details
-
Class
Constructor generated according to specification #0
Constructor defined according to directive "C 0/..".- Parameters:
name
- is copied to fieldname
superClass
- is copied to fieldsuperClass
-
-
Method Details
-
doclone
Clones this object. Method never fails, sinceCloneable
is known to be implemented.- Overrides:
doclone
in classLLJava.Attributable
- Returns:
- a fresh copy.
-
getFormatHint
Delivers the format specification from the umod source.
The constant return value is ..
(annotations[, , /];modifiers{$java 'FormatUtils.modifier'}[, , /],'class' name,>typeParameters['<'|',' ,'>'/] ;>'extends' superClass ;>interfaces['implements' |',' , /]);'{'/>(fields[/]/methods[/])/'}'
This can be used e.g. by format code interpreters which process objects of different origin. -
format
Delivers a format object for pretty-printing, as specified in the umod source.- Specified by:
format
in interfaceFormattable
- Overrides:
format
in classLLJava.Attributable
- Returns:
- a format that represents this object in a pretty-printable way
-
initFrom
Copies values of all common fields from the argument. All fields of this class definition are copied, iff the argument is of this class. Then the superclass method is invoked with the same argument.- Overrides:
initFrom
in classLLJava.Attributable
-
get_name
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":154.9-79, see this pretty print.)
Generated getter method. @see #name- Returns:
- The current field value of type
LLJava.QualId
(never null)
-
set_name
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":154.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeLLJava.QualId
(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
get_innerName
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":155.9-28, see this pretty print.)
Generated getter method. @see #innerName- Returns:
- The current field value of type
LLJava.Id
(maybe null)
-
set_innerName
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":155.9-28, see this pretty print.)
Updates the (mutable) instance destructively. -
get_typeParameters
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":156.9-79, see this pretty print.)
Generated getter method. @see #typeParameters- Returns:
- The current field value of type
CheckedList
<LLJava.TypeParameter
(never null)>(never null)
-
set_typeParameters
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":156.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.TypeParameter
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_typeParameters
Deprecated. -
get_superClass
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":157.9-79, see this pretty print.)
Generated getter method. @see #superClass- Returns:
- The current field value of type
LLJava.ClassReference
(never null)
-
set_superClass
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":157.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeLLJava.ClassReference
(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
get_interfaces
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":158.9-79, see this pretty print.)
Generated getter method. @see #interfaces- Returns:
- The current field value of type
CheckedList
<LLJava.ClassReference
(never null)>(never null)
-
set_interfaces
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":158.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.ClassReference
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_interfaces
Deprecated. -
get_fields
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":159.9-79, see this pretty print.)
Generated getter method. @see #fields- Returns:
- The current field value of type
CheckedList
<LLJava.Field
(never null)>(never null)
-
set_fields
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":159.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.Field
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_fields
Deprecated. -
get_methods
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":160.9-79, see this pretty print.)
Generated getter method. @see #methods- Returns:
- The current field value of type
CheckedList
<LLJava.Method
(never null)>(never null)
-
set_methods
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":160.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.Method
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_methods
Deprecated. -
get_innerClasses
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":161.9-28, see this pretty print.)
Generated getter method. @see #innerClasses- Returns:
- The current field value of type
CheckedList
<LLJava.InnerClass
(never null)>(never null)
-
set_innerClasses
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":161.9-28, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.InnerClass
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_innerClasses
Deprecated. -
get_pool
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1016.9-73, see this pretty print.)
Generated getter method. @see #pool- Returns:
- The current field value of type
CheckedList
<LLJava.ConstantPoolEntry
(never null)>(never null)
-
set_pool
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1016.9-73, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.ConstantPoolEntry
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_pool
Deprecated. -
get_thisEntry
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1017.9-73, see this pretty print.)
Generated getter method. @see #thisEntry- Returns:
- The current field value of type
LLJava.ClassRef
(maybe null)
-
set_thisEntry
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1017.9-73, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeLLJava.ClassRef
(maybe null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
get_signatureEntry
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1018.9-73, see this pretty print.)
Generated getter method. @see #signatureEntry- Returns:
- The current field value of type
LLJava.ConstantUTF8
(maybe null)
-
set_signatureEntry
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1018.9-73, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeLLJava.ConstantUTF8
(maybe null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
get_name
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_innerName
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_typeParameters
public static Pattern<LLJava.Class> get_typeParameters(Pattern<? super CheckedList<LLJava.TypeParameter>> p) Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_superClass
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_interfaces
public static Pattern<LLJava.Class> get_interfaces(Pattern<? super CheckedList<LLJava.ClassReference>> p) Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_fields
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_methods
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_innerClasses
public static Pattern<LLJava.Class> get_innerClasses(Pattern<? super CheckedList<LLJava.InnerClass>> p) Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_pool
public static Pattern<LLJava.Class> get_pool(Pattern<? super CheckedList<LLJava.ConstantPoolEntry>> p) Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_thisEntry
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
. -
get_signatureEntry
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classLLJava.__Patterns
.
-