Package jadx.core.dex.nodes.parser
Class SignatureParser
java.lang.Object
jadx.core.dex.nodes.parser.SignatureParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidconsume(char exp) List of types separated by ':' last type is 'java.lang.Object'.Map of generic types names to extends classes.consumeMethodArgs(int argsCount) private ArgTypeconsumeObjectType(boolean innerType) @Nullable StringconsumeUntil(char lastChar) private Stringstatic @Nullable SignatureParserfromNode(IAttributeNode node) static @Nullable StringgetSignature(IAttributeNode node) private StringInclusive slice (includes current character)private booleanlookAhead(char ch) private voidmark()private static StringmergeSignature(List<String> list) private charnext()private booleanskipUntil(char untilChar) private Stringslice()Exclusive slice.toString()private booleantryConsume(char exp)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
STOP_CHAR
private static final char STOP_CHAR- See Also:
-
sign
-
end
private final int end -
pos
private int pos -
mark
private int mark
-
-
Constructor Details
-
SignatureParser
-
-
Method Details
-
fromNode
-
getSignature
-
next
private char next() -
lookAhead
private boolean lookAhead(char ch) -
mark
private void mark() -
slice
Exclusive slice.- Returns:
- string from 'mark' to current position (not including current character)
-
inclusiveSlice
Inclusive slice (includes current character) -
skipUntil
private boolean skipUntil(char untilChar) -
consume
private void consume(char exp) -
tryConsume
private boolean tryConsume(char exp) -
consumeUntil
-
consumeType
-
consumeTypeList
-
consumeObjectType
-
consumeGenericArgs
-
consumeGenericTypeParameters
Map of generic types names to extends classes.Example: "<T:Ljava/lang/Exception;:Ljava/lang/Object;>"
-
consumeExtendsTypesList
List of types separated by ':' last type is 'java.lang.Object'. Example: "Ljava/lang/Exception;:Ljava/lang/Object;" -
consumeMethodArgs
-
mergeSignature
-
getSignature
-
debugString
-
toString
-