MCPcopy Create free account
hub / github.com/antlr/codebuff / getObjectProperty

Method getObjectProperty

output/java/1.4.12/Interpreter.java:1179–1193  ·  view source on GitHub ↗
(STWriter out, InstanceScope scope, Object o, Object property)

Source from the content-addressed store, hash-verified

1177 }
1178
1179 protected Object getObjectProperty(STWriter out, InstanceScope scope, Object o, Object property) {
1180 if ( o==null ) {
1181 errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, "null."+property);
1182 return null;
1183 }
1184 try {
1185 final ST self = scope.st;
1186 ModelAdaptor adap = self.groupThatCreatedThisInstance.getModelAdaptor(o.getClass());
1187 return adap.getProperty(this, self, o, property, toString(out, scope, property));
1188 }
1189 catch (STNoSuchPropertyException e) {
1190 errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, e, o.getClass().getName()+"."+property);
1191 }
1192 return null;
1193 }
1194
1195 /**
1196 * Find an attribute via dynamic scoping up enclosing scope chain. Only look

Callers 1

_execMethod · 0.95

Calls 5

getPropertyMethod · 0.95
toStringMethod · 0.95
runTimeErrorMethod · 0.65
getModelAdaptorMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected