Package eu.bandm.tools.lljava.codec
Class SignatureParser
java.lang.Object
eu.bandm.tools.lljava.codec.SignatureParser
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Expression<SourceId,
SignatureParser.TokenType, LLJava.PrimitiveTypeExpr> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclassTypeSignature
(Expression<SourceId, SignatureParser.TokenType, LLJava.ReferenceTypeExpr> referenceTypeSignature) void
parseClassSignature
(String signature, LLJava.Class cls) void
parseFieldSignature
(String signature, LLJava.Field field) void
parseMethodSignature
(String signature, LLJava.Method method) protected <A> void
parseSignature
(String signature, Expression<SourceId, SignatureParser.TokenType, Consumer<A>> expr, A target) protected void
processClass
(Reducer.Context<SourceId> context, LLJava.Class target, List<LLJava.TypeParameter> typeParams, LLJava.ClassTypeExpr superClass, List<LLJava.ClassTypeExpr> interfaces) protected void
processField
(Reducer.Context<SourceId> context, LLJava.Field target, LLJava.TypeExpr type) protected void
processMethod
(Reducer.Context<SourceId> context, LLJava.Method target, List<LLJava.TypeParameter> typeParams, List<LLJava.TypeExpr> params, LLJava.ResultExpr result, List<LLJava.ClassTypeExpr> exceptions) typeArguments
(Expression<SourceId, SignatureParser.TokenType, LLJava.ReferenceTypeExpr> referenceTypeSignature) protected void
unerase
(LLJava.ResultExpr raw, LLJava.ResultExpr generic) protected void
unerase
(LLJava.ReturnsExpr raw, LLJava.ReturnsExpr generic) protected void
unerase
(LLJava.TypeParameter raw, LLJava.TypeParameter generic) protected void
unerase
(LLJava.UpperTypeBound raw, LLJava.UpperTypeBound generic) protected void
unerase
(Property<LLJava.ArrayTypeExpr> raw, LLJava.ArrayTypeExpr generic, boolean fixed) protected void
unerase
(Property<LLJava.ClassTypeExpr> raw, LLJava.ClassTypeExpr generic, boolean fixed) protected void
unerase
(Property<LLJava.PrimitiveTypeExpr> raw, LLJava.PrimitiveTypeExpr generic, boolean fixed) protected void
unerase
(Property<LLJava.ReferenceTypeExpr> raw, LLJava.ReferenceTypeExpr generic, boolean fixed) protected void
unerase
(Property<LLJava.TypeArgument> raw, LLJava.TypeArgument generic, boolean fixed) protected void
unerase
(Property<LLJava.TypeExpr> raw, LLJava.TypeExpr generic, boolean fixed) protected void
unerase
(Property<LLJava.Wildcard> raw, LLJava.Wildcard generic, boolean fixed) protected void
uneraseArguments
(List<LLJava.TypeArgument> raw, List<LLJava.TypeArgument> generic, boolean fixed) protected void
uneraseClassTypes
(List<Property<LLJava.ClassTypeExpr>> raw, List<LLJava.ClassTypeExpr> generic, boolean fixed) protected void
uneraseFail
(LLJava.Node raw, LLJava.Node generic) protected void
uneraseFail
(Property<? extends LLJava.Node> raw, LLJava.Node generic) protected void
uneraseParameters
(List<LLJava.TypeParameter> raw, List<LLJava.TypeParameter> generic) protected void
uneraseReferenceTypes
(List<Property<LLJava.ReferenceTypeExpr>> raw, List<LLJava.ReferenceTypeExpr> generic, boolean fixed) protected void
uneraseTypes
(List<Property<LLJava.TypeExpr>> raw, List<LLJava.TypeExpr> generic, boolean fixed)
-
Field Details
-
baseType
public static final Expression<SourceId,SignatureParser.TokenType, baseTypeLLJava.PrimitiveTypeExpr> -
typeVariableSignature
public final Expression<SourceId,SignatureParser.TokenType, typeVariableSignatureLLJava.ClassTypeExpr> -
javaTypeSignature
-
referenceTypeSignature
public final Expression<SourceId,SignatureParser.TokenType, referenceTypeSignatureLLJava.ReferenceTypeExpr> -
classTypeSignature
-
identifier
-
typeParameter
-
typeParameters
public final Expression<SourceId,SignatureParser.TokenType, typeParametersList<LLJava.TypeParameter>> -
classSignature
-
voidSignature
-
resultSignature
-
throwsSignature
-
methodSignature
-
fieldSignature
-
-
Constructor Details
-
SignatureParser
public SignatureParser()
-
-
Method Details
-
typeArguments
public final Expression<SourceId,SignatureParser.TokenType, typeArgumentsList<LLJava.TypeArgument>> (Expression<SourceId, SignatureParser.TokenType, LLJava.ReferenceTypeExpr> referenceTypeSignature) -
classTypeSignature
public final Expression<SourceId,SignatureParser.TokenType, classTypeSignatureLLJava.ClassTypeExpr> (Expression<SourceId, SignatureParser.TokenType, LLJava.ReferenceTypeExpr> referenceTypeSignature) -
parseClassSignature
-
parseFieldSignature
-
parseMethodSignature
-
parseSignature
protected <A> void parseSignature(String signature, Expression<SourceId, SignatureParser.TokenType, Consumer<A>> expr, A target) -
processClass
protected void processClass(Reducer.Context<SourceId> context, LLJava.Class target, List<LLJava.TypeParameter> typeParams, LLJava.ClassTypeExpr superClass, List<LLJava.ClassTypeExpr> interfaces) -
processMethod
protected void processMethod(Reducer.Context<SourceId> context, LLJava.Method target, List<LLJava.TypeParameter> typeParams, List<LLJava.TypeExpr> params, LLJava.ResultExpr result, List<LLJava.ClassTypeExpr> exceptions) -
processField
protected void processField(Reducer.Context<SourceId> context, LLJava.Field target, LLJava.TypeExpr type) -
unerase
-
unerase
-
unerase
protected void unerase(Property<LLJava.TypeArgument> raw, LLJava.TypeArgument generic, boolean fixed) -
unerase
-
unerase
-
unerase
protected void unerase(Property<LLJava.ReferenceTypeExpr> raw, LLJava.ReferenceTypeExpr generic, boolean fixed) -
unerase
protected void unerase(Property<LLJava.PrimitiveTypeExpr> raw, LLJava.PrimitiveTypeExpr generic, boolean fixed) -
unerase
protected void unerase(Property<LLJava.ClassTypeExpr> raw, LLJava.ClassTypeExpr generic, boolean fixed) -
unerase
protected void unerase(Property<LLJava.ArrayTypeExpr> raw, LLJava.ArrayTypeExpr generic, boolean fixed) -
unerase
-
unerase
-
uneraseClassTypes
protected void uneraseClassTypes(List<Property<LLJava.ClassTypeExpr>> raw, List<LLJava.ClassTypeExpr> generic, boolean fixed) -
uneraseReferenceTypes
protected void uneraseReferenceTypes(List<Property<LLJava.ReferenceTypeExpr>> raw, List<LLJava.ReferenceTypeExpr> generic, boolean fixed) -
uneraseTypes
protected void uneraseTypes(List<Property<LLJava.TypeExpr>> raw, List<LLJava.TypeExpr> generic, boolean fixed) -
uneraseArguments
protected void uneraseArguments(List<LLJava.TypeArgument> raw, List<LLJava.TypeArgument> generic, boolean fixed) -
uneraseParameters
protected void uneraseParameters(List<LLJava.TypeParameter> raw, List<LLJava.TypeParameter> generic) -
uneraseFail
-
uneraseFail
-