public class JsniRef extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLASS
Special field name for referring to a class literal.
|
static String |
NEW
Special method name for a class constructor.
|
static String |
WILDCARD_PARAM_LIST
A parameter list indicating a match to any overload.
|
Modifier | Constructor and Description |
---|---|
protected |
JsniRef(String className,
int arrayDimensions,
String memberName,
String paramTypesString,
String[] paramTypes) |
Modifier and Type | Method and Description |
---|---|
String |
className() |
boolean |
equals(Object obj) |
String |
fullClassName() |
int |
getDimensions() |
String |
getFullResolvedClassName() |
String |
getResolvedClassName() |
String |
getResolvedMemberSignature() |
String |
getResolvedReference() |
int |
hashCode() |
boolean |
isArray() |
boolean |
isField() |
boolean |
isMethod() |
boolean |
matchesAnyOverload()
Whether this method reference matches all overloads of the specified class
and method name.
|
String |
memberName() |
String |
memberSignature() |
String[] |
paramTypes()
Return the list of parameter types for the method referred to by this
reference.
|
String |
paramTypesString() |
static JsniRef |
parse(String refString)
Parse a Java reference from JSNI code.
|
void |
setResolvedClassName(String resolvedClassName) |
void |
setResolvedMemberWithSignature(String resolvedMemberSignature) |
String |
toString() |
public static final String CLASS
public static final String NEW
public static final String WILDCARD_PARAM_LIST
public static JsniRef parse(String refString)
public String className()
public boolean isField()
public boolean isMethod()
public boolean matchesAnyOverload()
public String memberName()
public String memberSignature()
public String[] paramTypes()
matchesAnyOverload()
is false.public String paramTypesString()
public void setResolvedClassName(String resolvedClassName)
public void setResolvedMemberWithSignature(String resolvedMemberSignature)
public String getResolvedClassName()
public String getFullResolvedClassName()
public String getResolvedReference()
public String getResolvedMemberSignature()
public String fullClassName()
public boolean isArray()
public int getDimensions()
Copyright © 2018. All rights reserved.