| Modifier and Type | Method and Description |
|---|---|
Property |
PropertyRef.getProperty() |
static Property |
Property.newProperty(Class type,
String name) |
static Property |
Property.newProperty(String name) |
static Property |
Property.newProperty(TypeRef typeRef,
String name) |
Property |
Property.withErasure()
Get the property after the type erasure is applied.
|
Property |
Property.withInitialValue(Expression initialValue)
Get the property with the specified object as iniital value.
|
Property |
Property.withInitialValue(Object initialValue)
Get the property with the specified object as iniital value.
|
Property |
Property.withInitialValue(Optional<Expression> initialValue)
Get the property with the specified initial value
|
Property |
Property.withoutInitialValue()
Get the property without its initial value.
|
protected Property |
Property.withoutModiers()
This is only used for rendering method arguments, where we usually string modifiers.
|
| Modifier and Type | Method and Description |
|---|---|
List<Property> |
Method.getArguments() |
List<Property> |
TypeDef.getProperties() |
List<Property> |
Declare.getProperties() |
| Modifier and Type | Method and Description |
|---|---|
default Assign |
Expression.assign(Property property) |
static Lambda |
Expression.lamba(Property parameter,
Expression expression) |
static Lambda |
Expression.lamba(Property parameter,
Statement statement) |
static Method |
Method.newMethod(String name,
TypeRef returnType,
boolean varArgPrefered,
Property... arguments) |
static Method |
Method.newMethod(String name,
TypeRef returnType,
Property... arguments) |
default Expression |
Expression.property(Property property) |
| Constructor and Description |
|---|
Assign(Property property,
Expression value) |
Assign(Property property,
Object value,
Object... rest) |
Cast(Class type,
Property property) |
Declare(Property property) |
Declare(Property property,
Expression expression) |
Declare(Property property,
Object value,
Object... rest) |
Declare(Property property,
Property valueProperty) |
Foreach(Property declarationProperty,
Expression expression,
Statement body) |
Foreach(Property declarationProperty,
Property expressionProperty,
Statement body) |
PropertyRef(Property property) |
PropertyRef(Property property,
Expression scope) |
Return(Property property) |
| Constructor and Description |
|---|
Declare(List<Property> properties,
Optional<Expression> value) |
Method(List<String> comments,
List<AnnotationRef> annotations,
List<TypeParamDef> parameters,
String name,
TypeRef returnType,
List<Property> arguments,
boolean varArgPreferred,
List<ClassRef> exceptions,
boolean defaultMethod,
Block block,
Modifiers modifiers,
Map<AttributeKey,Object> attributes) |
TypeDef(Kind kind,
String packageName,
String name,
List<String> comments,
List<AnnotationRef> annotations,
List<ClassRef> extendsList,
List<ClassRef> implementsList,
List<TypeParamDef> parameters,
List<Property> properties,
List<Method> constructors,
List<Method> methods,
String outerTypeName,
List<TypeDef> innerTypes,
Modifiers modifiers,
Map<AttributeKey,Object> attributes) |
Copyright © 2023. All rights reserved.